<ion-view view-title="单品库存分布" show-tabs>
    <ion-content class="wrap-light supplier-detail">
		<ion-list class="wrap-light2">
			<ion-item class="item item-base">
			    <span class="list-label">商品：</span>
			    <span class="royal">{{detail.type}}</span>
			</ion-item>

			<ion-item class="item item-base">
			    <span class="list-label">存量：</span>
			    <span class="balanced">{{detail.total}} 部</span>
			</ion-item>

			<ion-item class="item item-base">
			    <span class="list-label">总值：</span>
			    <span class="balanced">{{detail.total * detail.sale_price | currency:'￥' }} </span>
			</ion-item>
			<ion-item class="item item-base">
			    <span class="list-label">分布：</span>
			    <ul>
			    	<li class="" ng-repeat="item in detail.distribution">
					    <span>{{ item.name }} : </span>
					    <span>{{ item.count }} 部</span>
					</li>
				</ul>
			</ion-item>
		</ion-list>
	</ion-content>
</ion-view>
